package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 仓库与货柜关联表
 * </p>
 *
 * @author author
 * @since 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("warehouse_shelves")
@ApiModel(value="WarehouseShelves对象", description="仓库与货柜关联表")
public class WarehouseShelves implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关系ID，主键自增")
    @TableId(value = "relation_id", type = IdType.AUTO)
    private Integer relationId;

    @ApiModelProperty(value = "仓库ID(关联warehouse表)")
    private Integer warehouseId;

    @ApiModelProperty(value = "货柜ID(关联shelves表)")
    private Integer shelfId;

    @ApiModelProperty(value = "区域编码(如A区/B区等)")
    private String areaCode;

    @ApiModelProperty(value = "X坐标位置")
    private Integer positionX;

    @ApiModelProperty(value = "Y坐标位置")
    private Integer positionY;

    @ApiModelProperty(value = "Z坐标位置(层数)")
    private Integer positionZ;

    @ApiModelProperty(value = "状态(1启用/0停用)")
    private Boolean status;

    @ApiModelProperty(value = "位置备注")
    private String remarks;

    @ApiModelProperty(value = "创建人用户名")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;


}
